-- Load the wave-table sound synthesizer with the wave shape given by a 512 sample array "wave". Once loaded, the wave-table remains in effect until another loadsynth() is evaluted.
-- Using loadsynth(n) will set the synthesizer to use square waves. The parameter "n" (0 to 255) sets the edge shape. Zero is closest to sine.